﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CCReleaseLog.aspx.cs" Inherits="WMS6.Web.Inventory.CCReleaseLog" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>CCRelease</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function() {
            initEditNewPage();
        }
        //显示 报表 DIV
        function showReport() {
            var pos = getElementPos("htmlbtnReport");
            document.getElementById("reportDiv").style.top = pos.y + 17;
            document.getElementById("reportDiv").style.left = pos.x;
            document.getElementById("hiddenReportFlag").value = '1';
        }
        //隐藏 报表 DIV
        function hiddenReportDiv() {
            var flag = document.getElementById("hiddenReportFlag").value
            if (flag == "1") {
                document.getElementById("reportDiv").style.display = "block";
                document.getElementById("hiddenReportFlag").value = '0';
            }
            else {
                document.getElementById("reportDiv").style.display = "none";
            }
        }
        function CheckTrue(chkid, obj, qty) {           
            
            if (parseInt(obj.value) >= 0 && parseInt(obj.value) != (qty)) {

                if (!document.getElementById(chkid).checked) {
                    document.getElementById(chkid).onclick();
                    document.getElementById(chkid).checked = true;
                }
            }
            else {
                if (document.getElementById(chkid).checked) {
                    document.getElementById(chkid).onclick();
                    document.getElementById(chkid).checked = '';
                }
            }
        }
        //弹出 打印 物理盘点 初盘工作单 的窗口
        function popPrintPc() {
            var ReleaseID = document.getElementById("txtReleaseID").value;
            window.open('../Common/PrintReport.aspx?rtype=CYCLECOUNT&ReleaseID=' + escape(ReleaseID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        
        
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }

        }
        
    </script>

</head>
<body>
    <form id="F5521" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <%--<asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>--%>
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblTransfer" runat="server" CssClass="label_header" 
                            Text="盘点发放日志" meta:resourcekey="lblTransfer"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnGoBack%>"
                            AccessKey="b" OnClick="btnGoBack_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" Enabled="False"
                            AccessKey="s" OnClick="btnSave_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button"  Enabled="False" OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;" Text="<%$Resources:ButtonResource,btnDelete%>"
                            AccessKey="d" OnClick="btnDelete_Click" />
                    </td>
                    <td>
                        <input id="htmlbtnReport" type="button" runat="server" class="button"  value="<%$Resources:ButtonResource,btnReport%>"
                            onclick="showReport();return false;" />
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)"
                id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">常规</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2);"
                id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one2">&nbsp;明细&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="540px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblReleaseID" runat="server" CssClass="label" Text="发放编号" 
                                meta:resourcekey="lblReleaseID"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblReleaseDate" runat="server" CssClass="label" Text="发放时间" 
                                meta:resourcekey="lblReleaseDate"></asp:Label>
                        </td>
                        <td width="180">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtReleaseID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtReleaseID"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtReleaseDate" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtReleaseDate"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                meta:resourcekey="lblStatus"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblCreatedBy" runat="server" CssClass="label" Text="发放人" 
                                meta:resourcekey="lblCreatedBy"></asp:Label>
                        </td>
                        <td width="180">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" 
                                Enabled="False" meta:resourcekey="ddlStatus">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCreatedBy" runat="server" CssClass="textbox" 
                                Enabled="False" meta:resourcekey="txtCreatedBy"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_2" style="display: none; overflow-x: auto; overflow-y: hidden;">
                <table width="1150px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div>
                                <asp:GridView ID="gvCCTag" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                    DataKeyNames="TAGNO,SYSQTY,STATUS,REQUESTID,OWNERID,SKUID,LOC,LOT,LPNID" AllowPaging="True"
                                    CssClass="gridview" Width="1150px" OnRowDataBound="gvCCTag_RowDataBound" oninit="gvCCTag_Init" 
                                    OnPageIndexChanging="gvCCTag_PageIndexChanging" 
                                    meta:resourcekey="gvCCTag">
                                    <FooterStyle CssClass="GridViewFooterStyle" />
                                    <RowStyle CssClass="GridViewRowStyle" />
                                    <HeaderStyle CssClass="GridViewHeaderStyle" />
                                    <PagerStyle CssClass="GridViewPageStyle" />
                                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                    <Columns>
                                        <asp:BoundField HeaderText="序号" FooterText="序号" 
                                            meta:resourcekey="BoundField">
                                            <ItemStyle CssClass="GridViewRowWidth_50" />
                                        </asp:BoundField>
                                        <asp:TemplateField meta:resourcekey="TemplateField">
                                            <HeaderTemplate>
                                                <asp:CheckBox ID="CheckBox1" runat="server" 
                                                    onclick="selectAll(this,'gvCCTag');" meta:resourcekey="CheckBox1" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chbSelect" runat="server" 
                                                    meta:resourcekey="chbSelect" />
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                <asp:CheckBox ID="CheckBox2" runat="server" 
                                                    onclick="selectAll(this,'gvCCTag');" meta:resourcekey="CheckBox2" />
                                            </FooterTemplate>
                                            <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                            <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="TAGNO" HeaderText="标签号" FooterText="标签号" 
                                            SortExpression="TAGNO" meta:resourcekey="TAGNO">
                                            <ItemStyle CssClass="GridViewRowWidth_50" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="OWNERID" HeaderText="货主代码" FooterText="货主代码" 
                                            SortExpression="OWNERID" meta:resourcekey="OWNERID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="SKUID" HeaderText="货品代码" FooterText="货品代码" 
                                            SortExpression="SKUID" meta:resourcekey="SKUID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LOC" HeaderText="货位" FooterText="货位" 
                                            SortExpression="LOC" meta:resourcekey="LOC">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LOT" HeaderText="批次号" FooterText="批次号" 
                                            SortExpression="LOT" meta:resourcekey="LOT">
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="STATUSD" HeaderText="状态" FooterText="状态" 
                                            SortExpression="STATUSD" meta:resourcekey="STATUSD">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LPNID" HeaderText="LPN" FooterText="LPN" 
                                            SortExpression="LPNID" meta:resourcekey="LPNID">
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:BoundField>
                                        <asp:TemplateField FooterText="盘点数量" HeaderText="盘点数量" 
                                            SortExpression="COUNTQTY" meta:resourcekey="COUNTQTY">
                                            <ItemTemplate>
                                                <asp:TextBox ID="txtCountQyt" runat="server" 
                                                    Text='<%# GetPreferenceDigit(Eval("COUNTQTY").ToString()) %>' 
                                                    meta:resourcekey="txtCountQyt"></asp:TextBox>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="调整数量" HeaderText="调整数量" SortExpression="ADJQTY" 
                                            meta:resourcekey="ADJQTY">
                                            <ItemTemplate>
                                                <asp:Label ID="lblADJQty" runat="server" 
                                                    Text='<%# GetPreferenceDigit(Eval("ADJQTY").ToString()) %>' 
                                                    meta:resourcekey="lblADJQty"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                         <asp:BoundField DataField="COUNTBY" HeaderText="盘点用户" FooterText="盘点用户" 
                                            SortExpression="COUNTBY" meta:resourcekey="COUNTBY">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>   
                                    </Columns>
                                </asp:GridView>
                            </div>
                        </td>
                    </tr>
                    <tr style="height: 30px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="reportDiv" style="background-color: #FFFFFF; position: absolute; display: none;">
            <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu2">
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnPrintCycleCount" runat="server" visible="false">
                        <asp:LinkButton ID="lnkbtnPrintCycleCount" runat="server" Text="打印盘点标签" meta:resourcekey="lnkbtnPrintCycleCount"
                            OnClientClick="popPrintPc();" ></asp:LinkButton>
                    </td>
                </tr>
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnPrintPCMaintenance" runat="server" visible="true">
                        <asp:LinkButton ID="lnkbtnPrintPCMaintenance" runat="server" Text="打印标签列表" meta:resourcekey="lnkbtnPrintPCMaintenance" ></asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <input type="hidden" id="hdnReleaseID" runat="server" />
        <input type="hidden" id="hdnFrom" runat="server" />
        <input type="hidden" id="hdnFlag" runat="server" />
        <input type="hidden" id="hiddenReportFlag" />
        <%--</ContentTemplate> 
        </asp:UpdatePanel>--%>
    </div>
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--			  
		    hiddenReportDiv();
		
		//-->
</script>

